package org.example.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("dynamic_kpi_column")
@ApiModel(value = "动态字段", description = "动态字段")
public class DynamicKpiColumn {

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("0：考核指标，1：关键指标")
    private Integer keyType;

    @ApiModelProperty("对应kpi_detail_info表的kpi_type")
    private Integer kpiType;

    @ApiModelProperty("字段名")
    private String columnName;

    @ApiModelProperty("字段别名")
    private String columnAlias;

    @ApiModelProperty("聚合函数 sum、count")
    private String aggFunc;

    @ApiModelProperty("字段展示名")
    private String columnDisplayName;

    @ApiModelProperty("顺序")
    private Integer sortOrder;

    @ApiModelProperty("-1：删除，0-正常")
    private Integer status;
}
